package cn.edu.xmu.oomall.customer.microservice;

import cn.edu.xmu.oomall.customer.microservice.vo.SimpleRegionRetVo;
import cn.edu.xmu.privilegegateway.annotation.util.InternalReturnObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "freight-service")
/**
 * @author Jiazhe Yuan
 */
public interface FreightService {
    /**
     * 从运费模块根据id拿到地区的id和name
     * @param id 地区id
     * @return simpleRegionVo
     */
    @GetMapping("/internal/region/{id}")
    InternalReturnObject<SimpleRegionRetVo> getSimpleRegionById(@PathVariable(name = "id") Long id);
}
